from .client import CommonClient
from .client import ApiClient
from ..utils.url_params import OpenApiUrlParams

"""
DocClient
文档管理
"""


class DocClient(ApiClient):
    # 上传即时文件
    def file_upload_instant(self, file, data):
        files = {}
        if file != '':
            files['fileContent'] = file
        return CommonClient.post_json(self, OpenApiUrlParams.FILE_UPLOAD_INSTANT, data, files)


